package com.liangtian.mdm.system.user.model;

import com.liangtian.mdm.base.model.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 * <p>Encoding    :  UTF-8</p>
 * <p>Package Name: com.liangtian.mdm.system.user.model </p>
 * <p>Project Name: dm </p>
 * <p>Copyright   :  Copyright(c) 2016 石化盈科信息技术有限责任公司 </p>
 * <p>Created Time: 2016-04-28 15:54</p>
 * <p>Description : 用户实体</p>
 *
 * @author : beamzhang
 * @version :  1.0
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Table(name = "SYS_USER")
public class SysUser extends BaseModel {

    /**
     *
     */
    private static final long serialVersionUID = 1L;

    @SequenceGenerator(name = "Any", sequenceName = "SYS_USER_SEQ")
    @Id
    @Column(name = "USER_ID")
    private Long userId;

    @Column(name = "USER_NAME")
    private String userName;

    @Column(name = "USER_ACCOUNT")
    private String userAccount;

    @Column(name = "USER_TELEPHONE")
    private String userTelephone;

    @Column(name = "USER_PHONE")
    private String userPhone;

    @Column(name = "USER_EMAIL")
    private String userEmail;

    @Column(name = "USER_SEX")
    private Long userSex;

    @Column(name = "USER_AGE")
    private Long userAge;

    @Column(name = "USER_STATUS")
    private String userStatus;
//    private Long userStatus;

    @Column(name = "USER_CREATE_DATE")
    private String userCreateDate;

    @Column(name = "USER_CREATE_ID")
    private Long userCreateId;

    @Column(name = "USER_PASSWORD")
    private String userPassword;

    @Column(name = "USER_SALT")
    private String userSalt;

    @Column(name = "USER_LOCKED")
    private Long userLocked;

    @Column(name = "USER_LOGIN_ERROR")
    private Long userLoginError;

    @Column(name = "ORGANIZATION_ID")
    private Long organizationId;

    @Column(name = "USER_REMARK")
    private String userRemark;

    @Column(name = "C_003")
    private String organizaName;

    private String limit;

    private transient String id;
}